# Copyright (C) 2020 QUECTEL Technologies Limited and/or its affiliates("QUECTEL").
# All rights reserved.
#

set(target ql_app_zq)

add_library(${target} STATIC)
set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_app_lib_dir})
target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_QUEC)
target_include_directories(${target} PUBLIC inc ../../../../share)
#target_link_libraries(${target} PRIVATE ql_api_common)

target_sources(${target} PRIVATE
	ql_encrypt_md5.c
	safe_base64.c
	cJSON.c
	kg_json.c
	btsinfo.c
	wifiscan.c
	dtu.c
	fota.c
	mqtt.c
	self_test.c
	zq_app.c
	zq_gl.c
	zq_ntp.c
	ftm/ftm.c
	../../../../share/share.c
)

relative_glob(srcs include/*.h src/*.c inc/*.h)
beautify_c_code(${target} ${srcs})
